<!DOCTYPE html>
<html>
<head th:include="common/header_css::header('霸王餐小程序后台管理-会员设置表','%mfile%datepicker')"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div th:replace="common/toolbar::toolbar('会员设置表管理')"></div>
        <div th:replace="common/search::search('no')"></div>
        <!-- End Panel Basic -->
    </div>
</div>

<!--添加Member模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">会员设置表添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="add">
                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >会员级别</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="hylevel">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >一级名称</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="hyname">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >一级会费</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="huifei">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >一级折扣</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="zhekou">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                            <div class="form-group">
                                                    <label class="col-sm-2 control-label">会员卡图</label>
                                                    <div class="col-sm-10">
                                                        <input id="mfile" name="mfile" type="file" class="file"/>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-add-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <input id="hidpic" name="pic" type="hidden" value=""/>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Member模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">会员设置表修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="modify">
                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >会员级别</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="hylevel" name="hylevel">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >一级名称</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="hyname" name="hyname">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >一级会费</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="huifei" name="huifei">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >一级折扣</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="zhekou" name="zhekou">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                            <div class="form-group">
                                                    <label class="col-sm-2 control-label">会员卡图</label>
                                                    <div class="col-sm-10">
                                                        <img id="previewPic" src='' class='file-preview-image' alt='' title=''
                                                             style="width: 100px;height: 100px;"/>
                                                        <input id="mfile2" name="mfile" type="file" class="file"/>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <input id="hidpic2" name="pic" type="hidden" value=""/>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <input id="id" name="id" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="common/footer_js::footer"></div>
<script src="/js/admin/member.js"></script>
</body>
</html>
